layui.use(['form', 'admin', 'ax', 'laydate', 'table'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    var laydate = layui.laydate;
    var table = layui.table;

    //渲染时间选择框
    laydate.render({
        elem: '#freetime',
        range: true,
        tiger: 'click',
    });
    laydate.render({
        elem: '#leasetime',
        range: true,
        tiger: 'click',
    });

    //返回按钮
    $("#backupPage").click(function () {
        let url = "/task/steerTask?id=" + id;
        if ($("#qb").val() == 1) {
            url = "/project";
        }
        window.location.href = Feng.ctxPath + url;
    });
});